import { Component, inject } from '@angular/core';
import { ListComponentBase } from '../components/list/list.component';
import { TimeDto, TimeService } from '@proxy/times';
import { PagedResultDto } from '@abp/ng.core';
import { Observable } from 'rxjs';

@Component({
  selector: 'app-time',
  templateUrl: './time.component.html',
  styleUrl: './time.component.scss'
})
export class TimeComponent extends ListComponentBase<TimeDto> {
  private _timeService = inject(TimeService);

  getList(): Observable<PagedResultDto<TimeDto>> {
    return this._timeService.getList(this.request);
  }

}
